package com.zhentao.controller;

import com.zhentao.pojo.DetectionConfig;
import com.zhentao.service.impl.DetectionConfigServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/Detection")
public class DetectionController {
    @Autowired
    private DetectionConfigServiceImpl detectionConfigService;
    @RequestMapping("/getList")
    public List<DetectionConfig> getList(){
        return detectionConfigService.list();
    }
}
